using System;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty
{
    [ExecuteAlways]
    public class SyncTransform : MonoBehaviour
    {
        public Transform target;

        private void LateUpdate()
        {
            if (target)
            {
                transform.position = target.position;
                transform.rotation = target.rotation;
            }
        }
    }
}